//
// Created by lymk on 2021/8/5.
//

#ifndef GAME2D_INPUTMANAGER_H
#define GAME2D_INPUTMANAGER_H


class InputManager {
    bool KeyBoardState[166];
    bool MouseState[3];//左键 中键 右键
    int MousePosX;
    int MousePosY;
public:
    void SetKeyBoardState(unsigned short keyID,bool state);
    void SetMouseState(unsigned short keyID,bool state);
    bool GetKeyBoardState(unsigned short keyID);
    bool GetMouseState(unsigned short keyID);
    bool UpdateMousePosition(int posX,int posY);
};


#endif //GAME2D_INPUTMANAGER_H
